﻿CKEDITOR.editorConfig = function (config) {
    // Define changes to default configuration here. For example:
    config.language = 'vi';
    config.uiColor = '#AADC6E';

    config.toolbarGroups = [
    { name: 'clipboard', groups: ['clipboard', 'undo'] },
    { name: 'editing', groups: ['find', 'selection', 'spellchecker'] },
    { name: 'links' },
    { name: 'insert' },
    { name: 'forms' },
    { name: 'tools' },
    { name: 'document', groups: ['mode', 'document', 'doctools'] },
    { name: 'others' },
    '/',
    { name: 'basicstyles', groups: ['basicstyles', 'cleanup'] },
    { name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align'] },
    { name: 'styles' },
    { name: 'colors' },
    { name: 'about' },
    { name: 'album' },
    { name: 'newplugin' }
    ];

    //    config.blockedKeystrokes = [
    //    CKEDITOR.CTRL + 66, // CTRL+B
    //    CKEDITOR.CTRL + 73, // CTRL+I
    //    CKEDITOR.CTRL + 85, // CTRL+U
    //    CKEDITOR.CTRL + 89, // CTRL+Y
    //    CKEDITOR.CTRL + 90, // CTRL+Z
    //    CKEDITOR.CTRL + CKEDITOR.SHIFT + 90  // CTRL+SHIFT+Z
    //    ];
    config.contentsCss = "/Styles/maincss.css";
    config.bodyClass = "maincss";
    
    config.clipboard_defaultContentType = 'text';

    //config.dialog_noConfirmCancel = false;

    config.dialog_startupFocusTab = true;
    config.disableNativeSpellChecker = true;


    config.removePlugins = 'image';
    config.extraPlugins = 'album';
    config.extraPlugins = 'youtube';
   // config.extraPlugins = "newplugin";
  //  config.removeDialogTabs = 'flash:advanced;image:Link';
    config.youtube_width = '640';
    config.youtube_height = '480';
    config.youtube_older = false;
};